@extends('layout.admin.index')
@section('content')
	<div class="panel admin-panel">
	<div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
	  	<div class="body-content">
		    <form method="post" class="form-x" action="/admin/commodity/doadd">  
		      	{{ csrf_field() }}
		      	<div class="form-group">
			        <div class="label">
			          <label>产品型号：</label>
			        </div>
		        <div class="field">
			          <input type="text" class="input w50" value="" name="goods_model" />
			          <div class="tips"></div>
		        </div>
		      	</div>
		      	<if condition="$iscid eq 1">
		        <div class="form-group">
			        <div class="label">
			        	<label>所属分类：</label>
			        </div>
		          	<div class="field">
			            <select name="goods_sort" class="input w50">
			              <option value="">请选择分类</option>
			              @foreach($data as $key=>$value)
			              <option value="{{ $value['id'] }}">{{ $value['goods_name'] }}</option>
			              @endforeach
			            </select>
			            <div class="tips"></div>
		          	</div>
		        </div>
		        
		        <div class="form-group">
			        <div class="label">
			            <label></label>
			        </div>
			        <div class="field">
			            <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
			        </div>
		      	</div>
		    </form>
		</div>
</div>	
@endsection